package com.yunxin.core.application.dto.user;

import cn.hutool.core.util.DesensitizedUtil;
import com.yunxin.core.utils.infra.support.desenditized.annotation.DesensitizationField;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.io.Serializable;

/**
 * @author zero°
 * @since 2023-07-19
 */
@Data
@Schema(description = "用户信息对象")
public class UserInfoDTO implements Serializable {

    /**
     * 用户code
     */
    @Schema(description = "用户code")
    private String userCode;
    /**
     * 用户手机号
     */
    @Schema(description = "用户手机号")
    @DesensitizationField(type = DesensitizedUtil.DesensitizedType.MOBILE_PHONE)
    private String phone;
    /**
     * 用户认证状态 0.已认证 1.未认证
     */
    @Schema(description = "用户认证状态 0.已认证 1.未认证")
    private Integer authStatus;
    /**
     * 用户认证状态
     */
    @Schema(description = "用户认证状态")
    private String authStatusStr;
}
